<div class="top-row pl-4 navbar navbar-dark">
    <a class="navbar-brand" href="">ACMEBlazor</a>
    <button class="navbar-toggler" onclick=@ToggleNavMenu>
        <span class="navbar-toggler-icon"></span>
    </button>
</div>

<div class=@(collapseNavMenu ? "collapse" : null) onclick=@ToggleNavMenu>
    <ul class="nav flex-column">

        <li class="nav-item px-3">
            <NavLink class="nav-link" href="" Match=NavLinkMatch.All>
                <span class="oi oi-home" aria-hidden="true"></span>
                Home
            </NavLink>
        </li>

        <li class="nav-item px-3">
            <NavLink class="nav-link" href="account">
                <span class="oi oi-plus" aria-hidden="true"></span>
                ACME Account
            </NavLink>
        </li>
        <li class="nav-item px-3">
            <NavLink class="nav-link" href="order">
                <span class="oi oi-plus" aria-hidden="true"></span>
                ACME Current Order
            </NavLink>
        </li>
        <li class="nav-item px-3">
            <NavLink class="nav-link" href="orders">
                <span class="oi oi-plus" aria-hidden="true"></span>
                ACME Orders
            </NavLink>
        </li>


        <li class="nav-item px-3">
            <NavLink class="nav-link" href="tryblazordb">
                <span class="oi oi-plus" aria-hidden="true"></span>
                Try BlazorDB
            </NavLink>
        </li>

        <li class="nav-item px-3">
            <NavLink class="nav-link" href="trydoh">
                <span class="oi oi-plus" aria-hidden="true"></span>
                Try DNS over HTTPS
            </NavLink>
        </li>



        <li class="nav-item px-3">
            <NavLink class="nav-link" href="counter">
                <span class="oi oi-plus" aria-hidden="true"></span>
                Counter
            </NavLink>
        </li>
        <li class="nav-item px-3">
            <NavLink class="nav-link" href="fetchdata">
                <span class="oi oi-list-rich" aria-hidden="true"></span>
                Fetch data
            </NavLink>
        </li>

    </ul>
</div>

@functions {
    bool collapseNavMenu = true;

    void ToggleNavMenu()
    {
        collapseNavMenu = !collapseNavMenu;
    }
}
